home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-27 | 4.4 KB | 129 lines | [TEXT/R*ch] |
- Instant Subclass 1.1
- Eliminate the C++ drudgery!
- ©1995-1996 Chris K. Thomas. All Rights Reserved.
-
- Instant Subclass is a developer tool which generates subclass template code
- from your base classes.
-
- See the Magic! Drop your .h file on Instant Subclass. Turn on the methods
- you wish to inherit. Click Generate, and new .cp and .h files with
- boilerplate code are instantly generated! Every C++ programmer should have
- it so easy!
-
- ——— Heavy Guilt Trip ————————————————————————————————————————————————————————
-
- Don’t forget to Register. Only $10. If you truly can't afford it, I also
- accept verbal applause (and abuse) via ckt@kagi.com.
-
- ——— Version History —————————————————————————————————————————————————————————
-
- • 1.1 June 1996
-
- Features Added:
- * Select All, Select None, and Select Inverse (added to the Edit
- menu) now work with the methods list.
- * Multiple template files supported.
- * Generated method declaration text is now parameterized through the
- template file.
-
- Bugs Fixed:
- * Major surgery on PowerPlant’s table classes. The methods list
- now behaves like a real Mac list. Wish Metrowerks would’ve done
- this work for me...
-
- • 1.0.1 April-May 1996
-
- Features Added:
- * The file header (version history, copyright, etc) is now parameterized.
- Customize!
- * I switched from “turning *off* methods you don’t want” to “turning *on*
- methods you do want.” This seems to make more sense.
-
- Bugs fixed:
- * "virtual" included in the method implementation declaration in the .cp file.
- * used the base class' name for the destructor
- * lots of minor application bugs not relevant to source generation.
- * No 68k build (forgetfulness)
-
- Bugs partially fixed:
- * difficult to select methods in the methods list. The full fix awaits a
- new version of PowerPlant. Should at least behave normally if you don’t
- drag while selecting.
-
- • 1.0 First Release
-
- ——— Customization ———————————————————————————————————————————————————————————
-
- 1. Either duplicate or edit an existing template file in the "Source
- Generation Templates" folder.
-
- In each file in the “Source Generation Templates” folder, there is a TEXT
- resource, id 128. This resource contains the text of the file header. Instant
- Subclass does an intermediate variable substition scan and then places it at the
- beginning of both generated files. TEXT resource id 129 contains a template for
- method declarations.
-
- The variable substition scan replaces variables with an appropriate
- generated value.
-
- Currently, only one variable is supported for the file info header:
-
- Variable Replaced with
- ———————————————————————————————————————————————————
- <FileName> Filename of the current file.
-
- And these are supported for the method template:
-
- <ReturnType> Method return type.
- <MethodName> Method name.
- <Arguments> Method arguments.
-
- Several sample template files are included. More text will be customizable
- in the future, most importantly class declarations, and more variable types
- will be added. Suggestions are welcome at ckt@kagi.com
-
- ——— Limitations —————————————————————————————————————————————————————————————
-
- InstantSubclass can't handle preprocessor weirdness, such as:
-
- class Gibberish
- {
- virtual void SAVE_DECLARED_METHOD(MyDeclaredMethod, (char *methodArg));
- };
-
- This, BTW, is one of the reasons that opponents of the C preprocessor
- wish to see the preprocessor eliminated from the language specification.
-
-
- ——— Future Plans ————————————————————————————————————————————————————————————
-
- Suggestions, ideas and bug reports are all entirely welcome at ckt@kagi.com.
-
- Next few versions...
-
- 1. do something about friends and copy constructors (but what?)
- 2. implement the base class access controls.
- 3. inherit from structs. This is trivial, but to be effective requires 6:
- 4. include an option to not add classes without methods to the class list.
- 5. track appearance changes for Copland
- 6. support for other languages is possible. This will probably be
- accomplished through template files.
- 7. fix bugs, fix bugs, fix bugs...
-
- further off...
- • add support for the derivation of SOM-based classes
- • add full AppleScript support - tedious but very cool
-
-
- ——— Legalities ——————————————————————————————————————————————————————————————
-
- * This software is provided AS IS.
-
- * Instant Subclass may be included on any and all CD-ROMs on the
- condition that I receive one copy of any and all such CD-ROMS including
- Instant Subclass.
-
- * Instant Subclass may not be distributed via the Microsoft Network.
-
- * Instant Subclass may not be distributed via Prodigy.
-